package com.recommended.util;

import com.recommended.dto.Button;
import com.recommended.dto.ClickButton;
import com.recommended.dto.Menu;
import com.recommended.dto.ViewButton;

public class WeChatMenuManagerUtil {
    public Menu getMenu(){
        ClickButton firstClickButton = new ClickButton();
        firstClickButton.setName("资料获取");
        firstClickButton.setKey("function");
        firstClickButton.setType("click");

        ViewButton firstViewButton = new ViewButton();
        firstViewButton.setName("考研建议");
        firstViewButton.setType("view");
        firstViewButton.setUrl("www.baidu.com");

        Menu menu = new Menu();
        Button[] boButtons = {firstClickButton,firstViewButton};
        menu.setButton(boButtons);

        return menu;
    }
}
